from django.shortcuts import render


# Create your views here.
# 模板
def index(requset):
    data = {
        'name': 'zhangsan',
        'age': 22,
        'likes': ['movie', 'game', 'code'],
        'address': {'city': '深圳', 'province': '广东'},
        'starts': [
            ['马化腾', '马云', '马斯克'],
            ['雷军', '李彦宏', '张一鸣'],
        ],
    }
    return render(requset, 'index.html', data)


def child(request):
    return render(request, 'child.html')


def block(request):
    return render(request, 'block.html')
